package com.youlu.campus.wechat.entity;

import lombok.Data;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;

import javax.validation.constraints.NotBlank;
import java.time.LocalDateTime;

/**
 * @Description: AppIdAccount
 * @Date 2025/10/27
 * @module AppIdAccount
 * @author: su
 */
@Data
@Document(collection = "wechat_appid_account")
public class WechatAppIdAccount {

    @Id
    private String id;

    /**
     * 商户号id
     */
    @NotBlank(message = "商户号id不能为空")
    private String merchantId;

    /**
     * 微信名称
     */
    @NotBlank(message = "微信名称不能为空")
    private String nickName;

    /**
     * 微信公众号appId
     */
    @NotBlank(message = "微信appId不能为空")
    private String appId;

    /**
     * 账号类型
     */
    @NotBlank(message = "账号类型不能为空")
    private String type;

    /**
     * 创建时间
     */
    private LocalDateTime createTime;

    /**
     * 更新时间
     */
    private LocalDateTime updateTime;
}
